//用户登录
function login(){
	var userName = document.getElementById('userName').value;
	var password = document.getElementById('password').value;
	
	if(isNullMsg(userName, '请输入用户名！') 
		&& isNullMsg(password, '请输入密码！')){
		
		$.post("login/login.action", 
			{"userName": userName, "password": password},
			function (data, textStatus){
				alert(data);
			});
	}
}

